Skip to main content

Chat with File (message, template)

CHAT_WITH_FILE

Chat with a file, using the specified system message and RAG template.

Parameters

  • filePath (string): Path to the file you'd like to chat with.
  • __system_message (string): The system message for the chatbot.
  • rag_template (string): If the chatbot should use specific instructions for chatting with the file, e.g. "Answer only based on this information. If you don't know - say so:

Returns

The chat log